/*** Eclipse Class Decompiler plugin, copyright (c) 2016 Chen Chao (cnfree2000@hotmail.com) ***/
package entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "vacabulary", catalog = "test")
public class Vacabulary implements Serializable {
	private Long id;
	private String englishmean;
	private String chinesemean;
	private byte[] voice;
	private byte[] pic;
	private int vocatype;

	public Vacabulary() {
	}

	public Vacabulary(String englishmean, String chinesemean, byte[] voice,
			byte[] pic) {
		this.englishmean = englishmean;
		this.chinesemean = chinesemean;
		this.voice = voice;
		this.pic = pic;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "englishmean", length = 100)
	public String getEnglishmean() {
		return this.englishmean;
	}

	public void setEnglishmean(String englishmean) {
		this.englishmean = englishmean;
	}

	@Column(name = "chinesemean", length = 100)
	public String getChinesemean() {
		return this.chinesemean;
	}

	public void setChinesemean(String chinesemean) {
		this.chinesemean = chinesemean;
	}

	@Column(name = "voice")
	public byte[] getVoice() {
		return this.voice;
	}

	public void setVoice(byte[] voice) {
		this.voice = voice;
	}

	@Column(name = "pic")
	public byte[] getPic() {
		return this.pic;
	}

	public void setPic(byte[] pic) {
		this.pic = pic;
	}

	public String toString() {
		return "[" + this.englishmean + "," + this.chinesemean + "]";
	}

	@Column(name = "vocatype")
	public int getVocatype() {
		return this.vocatype;
	}

	public void setVocatype(int vocatype) {
		this.vocatype = vocatype;
	}
}